package com.rainwood.water_authority.ui.adapter;

import android.content.Context;
import android.view.ViewGroup;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.rainwood.water_authority.R;
import com.rainwood.water_authority.base.MyBaseAdapter;
import com.rainwood.water_authority.http.response.PanDianHistoryBean;

/**
 * @auther : hhx
 * @date :  2021/3/18
 * @des :
 */
public class HistoryfaliaoAdapter extends MyBaseAdapter<PanDianHistoryBean.DataBean.RecordBean> {
    public HistoryfaliaoAdapter(@NonNull Context context) {
        super(context);
    }

    @NonNull
    @Override
    public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        return new ViewHolder();
    }

    private class ViewHolder extends MyBaseAdapter.ViewHolder {


        private final TextView tv_orderNo;
        private final TextView tv_date, tv_name,tv_type;

        public ViewHolder() {
            super(R.layout.item_shouliaohistory);
            tv_orderNo = (TextView) findViewById(R.id.tv_orderNo);
            tv_date = (TextView) findViewById(R.id.tv_date);
            tv_name = (TextView) findViewById(R.id.tv_name);
            tv_type= (TextView) findViewById(R.id.tv_type);
        }

        @Override
        public void onBindView(int position) {
//            PanDianHistoryBean.DataBean.RecordBean recordBean = getItem(position);
//            tv_orderNo.setText(getItem(position).getOrderNo());
//            tv_date.setText(getItem(position).getDate());
//            tv_name.setText(getItem(position).getName());
        }
    }
}
